import request from '@/utils/request'

// 查询压力传感器事件列表
export function listPressureSensorEvent(query) {
  return request({
    url: '/device/pressureSensorEvent/list',
    method: 'get',
    params: query
  })
}

// 查询压力传感器事件详细
export function getPressureSensorEvent(id) {
  return request({
    url: '/device/pressureSensorEvent/' + id,
    method: 'get'
  })
}

// 新增压力传感器事件
export function addPressureSensorEvent(data) {
  return request({
    url: '/device/pressureSensorEvent',
    method: 'post',
    data: data
  })
}

// 修改压力传感器事件
export function updatePressureSensorEvent(data) {
  return request({
    url: '/device/pressureSensorEvent',
    method: 'put',
    data: data
  })
}

// 删除压力传感器事件
export function delPressureSensorEvent(id) {
  return request({
    url: '/device/pressureSensorEvent/' + id,
    method: 'delete'
  })
}
